<%@ tag body-content="scriptless" language="java" pageEncoding="UTF-8"%>
<%@ attribute name="title" required="true" type="java.lang.String" %>
<%@ attribute name="page_header_title" required="true" type="java.lang.String" %>
<%@ attribute name="page_header_description" required="true" type="java.lang.String" %>
<%@ taglib prefix="z" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
	<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
	<!--[if IE 7 ]><html class="ie7" lang="en"> <![endif]-->
	<!--[if IE 8 ]><html class="ie8" lang="en"> <![endif]-->
	<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
	<head>
		<c:set var="url">${pageContext.request.requestURL}</c:set>
		<base href="${fn:substring(url, 0, fn:length(url) - fn:length(pageContext.request.requestURI))}${pageContext.request.contextPath}/" />
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<z:stylesheets/>
		<title>${title} - livWeb</title>
	</head>

	<body>
			<div id="wrap">
				
				<!-- Header e Login (Área Direita do Header) -->
				<z:header/>
	
				<div class="container-fluid">
					<!-- Breadcrumbs
					<ul class="breadcrumb">
						<li><a href="#">Home</a> <span class="divider">/</span></li>
						<li><a href="#">Library</a> <span class="divider">/</span></li>
						<li class="active">Data</li>
					</ul> -->
					
					<div class="span3">
						<!-- TODO: Passar variável no controlador para setar qual menu deve ficar como 'active' -->
						<z:side-menu/>
					</div>
					<div class="span12">
						<div class="page-header">
							<h1>${page_header_title} <small>${page_header_description}</small></h1>
						</div>
						<jsp:doBody/>
					</div>
				</div>
	
				<div id="push"></div>
			</div>	
			
			<footer class="footer" id="footer">
				<div class="container">
					<p><i class="icon-smile icon-large"></i></p>
					<p class="muted credit">
						livWeb sua livraria na web!
					</p>
				</div>
			</footer>
		
		</body>
		
		<!-- Carregando arquivos javascripts depois do corpo para a página ficar mais rápida -->
		<z:javascripts/>

</html>